import request from "@/utils/request"

export const loginAPI = (data)=>{
    return request({
        url:'/sys/login',
        method:'POST',
        data
    })
}

export const userFollowAPI = (data)=>{
    return request({
        url:'/user/follow',
        data
    })
}

export const userArticleCommentAPI = (data)=>{
    return request({
        url:'/user/article/comment',
        method:'POST',
        data
    })
}

/**
 * 用户点赞
 */
export function userPraise(data) {
    return request({
      url: '/user/praise',
      data
    });
  }
  
/**
 * 用户收藏
 */
export function userCollect(data) {
    return request({
      url: '/user/collect',
      data
    });
  }
  